//
//  NewCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-24.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "NewCell.h"

@implementation NewCell


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        
        
        [self setCell];
    }
    return self;
}


-(void)setCell
{
    //图片
    UIImageView *tmpImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 60, 60)];
    //    tmpImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:tmpImageView];
    [tmpImageView release];
    self.myImageView = tmpImageView;
    
    //标题
    UILabel *tmptitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(70, 10, 250, 20)];
    //    tmptitleLabel.backgroundColor = [UIColor yellowColor];
    tmptitleLabel.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:tmptitleLabel];
    [tmptitleLabel release];
    self.titleLabel = tmptitleLabel;
    
    //内容
    UILabel *tmpsumLabel = [[UILabel alloc]initWithFrame:CGRectMake(70, 40, 250, 20)];
    //    tmpsumLabel.backgroundColor = [UIColor yellowColor];
    tmpsumLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:tmpsumLabel];
    [tmpsumLabel release];
    self.sumLabel = tmpsumLabel;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
